<template>
	<view>
		<view class="content">
			<!-- <view class="list">
				<view class="row">
					<view class="title">头像</view>
					<view class="right"><view class="tis">
					<image src="/static/img/face.jpg" mode="widthFix"></image>
					</view><view class="icon xiangyou"></view></view>
				</view>
				<view class="row">
					<view class="title">昵称</view>
					<view class="right"><view class="tis">大黑哥</view><view class="icon xiangyou"></view></view>
				</view>
				<view class="row" @tap="jumpAddress">
					<view class="title">收货地址</view>
					<view class="right"><view class="tis"></view><view class="icon xiangyou"></view></view>
				</view>
			</view> -->
			<view class="list">
			<!-- 	<view class="row" @tap="bindTel">
					<view class="title">绑定手机号</view>
					<view class="right"><view class="tis"></view><view class="icon xiangyou"></view></view>
				</view> -->
				<view class="row" @tap="bindWx">
					<view class="title">绑定微信号</view>
					<view class="right"><view class="tis"></view><view class="icon xiangyou"></view></view>
				</view>
				<view class="row" @tap="bindAlipy">
					<view class="title">绑定支付宝</view>
					<view class="right"><view class="tis"></view><view class="icon xiangyou"></view></view>
				</view>
			</view>
			<view class="list">
				<view class="row" @tap="jumpColor">
					<view class="title">主题切换</view>
					<view class="right"><view class="tis"></view><view class="icon xiangyou"></view></view>
				</view>
			</view>
			<view class="btn" @tap="Signout" :style="{background:colors.color}">退出登录</view>
		</view>
		<!-- <button type="default" open-type="contact">客服</button> -->
	</view>
</template>

<script>
	import {removeToken,getColorCofig} from '../../../static/utils/ahth.js'
	export default {
		data() {
			return {
				colors:{}
			};
		},
		onShow() {
			this.colors = getColorCofig()
		},
		methods: {
			showType(tbIndex){
				this.tabbarIndex = tbIndex;
				this.list = this.orderList[tbIndex];
			},
			Signout(){//退出登录
				removeToken() //清除token
				uni.showToast({
					title:'退出成功',
					icon:'none'
				})
				setTimeout(()=>{
					this.$Router.pushTab({
						path:'/pages/tabBar/home/home'
					})
				},2000)
			},
			jumpAddress(){
				this.$Router.push({path:'/pages/user/address/address'})
			},
			bindTel(){
				this.$Router.push({path:'/pagesA/pages/user/bindTel'})
			},
			bindAlipy(){
				this.$Router.push({path:'/pagesA/pages/user/bindAlipay'})
			},
			jumpColor(){
				this.$Router.push({path:'/pagesA/pages/user/setColor'})
			},
			bindWx(){//绑定微信号
				this.$Router.push({path:'/pagesA/pages/user/bindWx'})
			}
		}
	}
</script>

<style lang="scss">
page{
	background-color: #f3f3f3;	
}
.content{
	height: 100%;
	overflow: hidden;
	margin-top: 10upx;
}
.icon {
	font-size: 30upx;

}
.btn{
	font-size: 28upx;
	color: #FFFFFF;
	padding: 20upx;
	background-color: #F23A3A;
	text-align: center;
	border-radius: 38upx;
	position: fixed;
	width: 60vw;
	bottom: 50upx;
	left: 50%;
	transform: translateX(-50%);
}
.content{
	padding-bottom: 20upx;
	.list{
		width: 96%;
		padding-left: 4%;
		background-color: #fff;
		margin-bottom: 20upx;
		box-sizing: content-box;
		.row{
			widows: 100%;
			min-height: 90upx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			border-bottom: solid 1upx #eee;
			transition: all 0.2s;
			&:last-child{
				border-bottom: none;
			}
			&:active{
				transform: scaleX(0.98);
			}
			.title{
				font-size:28Upx;
				font-family:Droid Sans Fallback;
				font-weight:400;
				color:rgba(51,51,51,1);
			}
			.right{
				display: flex;
				align-items: center;
				color: #999;
				.tis{
					font-size: 26upx;
					margin-right: 5upx;
					max-height: 120upx;
					image{
						width: 100upx;
						height: 100upx;
						border-radius: 100%;
						margin: 10upx 0;
					}
				}
				.icon{
					width: 40upx;
					color: #cecece;
				}
			}
			
		}
	}
}

</style>
